import { MonitorController } from '@/controller/MonitorController';
export const MonitorCompute = [
  /**
   * 获取总用户数
   */
  {
    method: 'get',
    route: '/monitor/user_count',
    controller: MonitorController,
    action: 'getUserCount',
  },
  /**
   * 获取总用户访问量
   */
  {
    method: 'get',
    route: '/monitor/visit_count',
    controller: MonitorController,
    action: 'getUserVisitCount',
  },
  /**
   * 增加用户访问量(测试用)
   */
  {
    method: 'get',
    route: '/monitor/visit_count/:id',
    controller: MonitorController,
    action: 'addVisitRecord',
  },
  /**
   * 获取总用户每日访问量
   */
  {
    method: 'get',
    route: '/monitor/visit_count_days',
    controller: MonitorController,
    action: 'getUserVisitCountForDays',
  },
  /**
   * 获取x天内新增用户数
   */
  {
    method: 'get',
    route: '/monitor/user_increase',
    controller: MonitorController,
    action: 'getUserIncreaseCount',
  },
  /**
   * 获取模块点击量
   */
  {
    method: 'get',
    route: '/monitor/module_click',
    controller: MonitorController,
    action: 'getUserModuleClickCount',
  },
  /**
   * 自定义模块点击量加1
   */
  {
    method: 'post',
    route: '/monitor/module_click',
    controller: MonitorController,
    action: 'addModuleClick',
  },
  {
    method: 'get',
    route: '/monitor/warning_user',
    controller: MonitorController,
    action: 'getWarningUser',
  },
  {
    method: 'get',
    route: '/monitor/user/warning',
    controller: MonitorController,
    action: 'getWarningUserOne',
  },
];
